package cn.e4j.modular.crm.entity;

import cn.e4j.core.typewrap.PO;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author shixc
 * @since 2019-02-01
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("MMRP_T")
public class MmrpT extends PO<MmrpT> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "MMRPENT", type = IdType.INPUT)
    private String MMRPENT;

    private String MMRPDOCNO;

    private BigDecimal MMRPSEQ;

    private String MMRP001;

    private String MMRP002;
    private String MMRP003;

    private LocalDate MMRP004;
    private String MMRP005;
    private String MMRP006;

    private String MMRP007;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate MMRP008;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate MMRP009;


    private String MMRPACTI;
    @TableField(fill = FieldFill.INSERT)
    private String MMRPUSER;

    @TableField(fill = FieldFill.INSERT)
    private String MMRPGRUP;

    @TableField(fill = FieldFill.UPDATE)
    private String MMRPMODU;

    @TableField(fill = FieldFill.INSERT)
    private String MMRPTIME;

    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate MMRPDATE;

    @TableField(fill = FieldFill.INSERT)
    private String MMRPORIG;

    @TableField(fill = FieldFill.INSERT)
    private String MMRPORIU;


    @Override
    protected Serializable pkVal() {
        return this.MMRPENT;
    }

}
